package com.servertest1;

public class usefulMethods {
	public static boolean isAllNumberOrAlpha(String s){
		for(int i = 0; i < s.length(); i++)
			if(!((s.charAt(i) >= 'a' && s.charAt(i) <= 'z') || (s.charAt(i) >= 'A' && s.charAt(i) <= 'Z') || (s.charAt(i) >= '0' && s.charAt(i) <= '9')))
				return false;
		return true;
	}
}
